package nju.bean.meeting.transporter.Feedback;

import nju.bean.meeting.guiManagement.GUIManager;

public class MessageFeedback extends Feedback {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private String message;
	
	public MessageFeedback(String message){
		this.message = message;
	}
	
	public String getMessage(){
		return message;
	}
	
	@Override
	public void deal(){
		System.out.println(message);
		String me[] =message.split("/");
		GUIManager gm = GUIManager.getInstance();
		if(me.length == 1)
			gm.showMessage(message);
		else{
			gm.showMessage(me[0], me[1]);
		}
	}
}
